package com.iknow.xmpp.service.aidl;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public abstract interface IBeemConnectionListener
  implements IInterface
{
  public abstract void connectionClosed()
    throws RemoteException;

  public abstract void connectionClosedOnError()
    throws RemoteException;

  public abstract void connectionFailed(String paramString)
    throws RemoteException;

  public abstract void reconnectingIn(int paramInt)
    throws RemoteException;

  public abstract void reconnectionFailed()
    throws RemoteException;

  public abstract void reconnectionSuccessful()
    throws RemoteException;

  public static abstract class Stub extends Binder
  implements IBeemConnectionListener
  {
    private static final String DESCRIPTOR = "com.iknow.xmpp.service.aidl.IBeemConnectionListener";
    static final int TRANSACTION_connectionClosed = 1;
    static final int TRANSACTION_connectionClosedOnError = 2;
    static final int TRANSACTION_connectionFailed = 6;
    static final int TRANSACTION_reconnectingIn = 3;
    static final int TRANSACTION_reconnectionFailed = 4;
    static final int TRANSACTION_reconnectionSuccessful = 5;

    public Stub()
    {
      attachInterface(this, "com.iknow.xmpp.service.aidl.IBeemConnectionListener");
    }

    public static IBeemConnectionListener asInterface(IBinder paramIBinder)
    {
      Object localObject;
      if (paramIBinder == null)
        localObject = null;
      while (true)
      {
        while (true)
        {
          return localObject;
          IInterface localIInterface = paramIBinder.queryLocalInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          if ((localIInterface == null) || (!(localIInterface instanceof IBeemConnectionListener)))
            break;
          localObject = (IBeemConnectionListener)localIInterface;
        }
        localObject = new Proxy(paramIBinder);
      }
    }

    public IBinder asBinder()
    {
      return this;
    }

    public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2)
      throws RemoteException
    {
      boolean bool;
      switch (paramInt1)
      {
      default:
        bool = super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
      case 1598968902:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      }
      while (true)
      {
        while (true)
        {
          while (true)
          {
            while (true)
            {
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    return bool;
                    paramParcel2.writeString("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
                    bool = true;
                  }
                  paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
                  connectionClosed();
                  paramParcel2.writeNoException();
                  bool = true;
                }
                paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
                connectionClosedOnError();
                paramParcel2.writeNoException();
                bool = true;
              }
              paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
              reconnectingIn(paramParcel1.readInt());
              paramParcel2.writeNoException();
              bool = true;
            }
            paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
            reconnectionFailed();
            paramParcel2.writeNoException();
            bool = true;
          }
          paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          reconnectionSuccessful();
          paramParcel2.writeNoException();
          bool = true;
        }
        paramParcel1.enforceInterface("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
        connectionFailed(paramParcel1.readString());
        paramParcel2.writeNoException();
        bool = true;
      }
    }

    private static class Proxy
  implements IBeemConnectionListener
    {
      private IBinder mRemote;

      Proxy(IBinder paramIBinder)
      {
        this.mRemote = paramIBinder;
      }

      public IBinder asBinder()
      {
        return this.mRemote;
      }

      public void connectionClosed()
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          this.mRemote.transact(1, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }

      public void connectionClosedOnError()
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          this.mRemote.transact(2, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }

      public void connectionFailed(String paramString)
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          localParcel1.writeString(paramString);
          this.mRemote.transact(6, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }

      public String getInterfaceDescriptor()
      {
        return "com.iknow.xmpp.service.aidl.IBeemConnectionListener";
      }

      public void reconnectingIn(int paramInt)
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          localParcel1.writeInt(paramInt);
          this.mRemote.transact(3, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }

      public void reconnectionFailed()
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          this.mRemote.transact(4, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }

      public void reconnectionSuccessful()
        throws RemoteException
      {
        Parcel localParcel1 = Parcel.obtain();
        Parcel localParcel2 = Parcel.obtain();
        try
        {
          localParcel1.writeInterfaceToken("com.iknow.xmpp.service.aidl.IBeemConnectionListener");
          this.mRemote.transact(5, localParcel1, localParcel2, 0);
          localParcel2.readException();
          return;
        }
        finally
        {
          localParcel2.recycle();
          localParcel1.recycle();
        }
      }
    }
  }
}